import org.apache.commons.lang3.StringUtils;
import org.junit.Test;

/**
 * @author LiKe
 * @version 1.0.0
 * @date 2020-07-20 14:43
 */
public class CommonTester {

    @Test
    public void testReference() {
        Reference b = new Reference("v1");
        Reference a = b;
        b = new Reference("v2");
        System.out.println(a);
    }

    private static final class Reference {
        private final String info;

        public Reference(String info) {
            this.info = info;
        }

        @Override
        public String toString() {
            return "Reference{" +
                    "info='" + info + '\'' +
                    '}';
        }
    }

    @Test
    public void testSplit() {
        final String[] caplikes = StringUtils.split("caplike", "|");
        System.out.println(caplikes[0]);
    }

}
